package br.com.esporte.negocios.entidades;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import javax.persistence.Transient;

@SuppressWarnings("serial")
@Entity
@Inheritance(strategy = InheritanceType.JOINED)
@PrimaryKeyJoinColumn(name = "esporte_grupo_id")
@Table(name = "esporte_grupo")
public abstract class EsporteGrupo extends Esporte {

	@Transient
	private Collection<Advertencia> advertencias;

	public EsporteGrupo() {
	}

	public Collection<Advertencia> getAdvertencias() {
		return advertencias;
	}

	public void setAdvertencias(Collection<Advertencia> advertencias) {
		this.advertencias = advertencias;
	}

}
